package com.kma.summer2012.client.events.authorization;

import com.google.gwt.event.shared.EventHandler;
import com.google.gwt.event.shared.GwtEvent;

public class ConfirmPasswordEvent extends GwtEvent<ConfirmPasswordEvent.ConfirmPasswordEventHandler> {
    private static Type<ConfirmPasswordEventHandler> TYPE = new Type<ConfirmPasswordEventHandler>();

    @Override
    public Type<ConfirmPasswordEventHandler> getAssociatedType() {
        return TYPE;
    }

    @Override
    protected void dispatch(ConfirmPasswordEventHandler confirmPasswordEventHandler) {
        confirmPasswordEventHandler.OnConfirmPassword(this);
    }

    public static Type<ConfirmPasswordEventHandler> getType() {
        return TYPE;
    }

    public interface ConfirmPasswordEventHandler extends EventHandler {
        void OnConfirmPassword(ConfirmPasswordEvent event);
    }
}
